/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: happyiu
 * Date: 2021-11-05
 * Time: 21:12
 */
public class TestDemo {

    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(0,1);
        myArrayList.add(1,2);
        myArrayList.add(2,3);
        myArrayList.add(3,4);

        myArrayList.display();
        System.out.println("==============");
        myArrayList.clear();
        myArrayList.display();
        myArrayList.search(2);

    }
}
